#!/usr/bin/python3
"""
    ----coding:utf-8----
    @Author   : sobo
    @Time     : 2018/3/29 下午2:49
    @Software : 
    @File     : celery.py

"""
import os
from celery import Celery
from django.conf import settings

# 为'Celery'设置默认的Django设置模块。
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myshop.settings')

app = Celery('myshop')

app.config_from_object('django.conf:settings')
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
